package day6.demo2_volatile;

public class Test {
    public static void main(String[] args) {
        Mythread t = new Mythread();
        t.start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                t.exit=true;
                System.out.println("关闭线程。。。。");
            }
        }).start();

    }
}
